# 基于java镜像创建新镜像
FROM java:8
# 作者
MAINTAINER Guoxw
# 将jar包添加到容器中并更名为app.jar
ADD  target/*.jar /root/docker/app.jar
# 运行jar包
ENTRYPOINT ["nohup","java","-jar","-Dspring.profiles.active=prod","/root/docker/app.jar","&"]
#ENTRYPOINT ["nohup","java","-jar","/root/docker/app.jar","&"]
